package org.miniframework.aop.aspect;

import org.miniframework.aop.PointcutLocator;

/**
 * AOP 2.0(支持表达式)
 */
public class AspectInfo {

    private int orderIndex;

    private DefaultAspect defaultAspect;

    private PointcutLocator pointcutLocator;

    public AspectInfo(){}

    public AspectInfo(int orderIndex, DefaultAspect defaultAspect, PointcutLocator pointcutLocator) {
        this.orderIndex = orderIndex;
        this.defaultAspect = defaultAspect;
        this.pointcutLocator = pointcutLocator;
    }

    public int getOrderIndex() {
        return orderIndex;
    }

    public void setOrderIndex(int orderIndex) {
        this.orderIndex = orderIndex;
    }

    public DefaultAspect getDefaultAspect() {
        return defaultAspect;
    }

    public void setDefaultAspect(DefaultAspect defaultAspect) {
        this.defaultAspect = defaultAspect;
    }

    public PointcutLocator getPointcutLocator() {
        return pointcutLocator;
    }

    public void setPointcutLocator(PointcutLocator pointcutLocator) {
        this.pointcutLocator = pointcutLocator;
    }
}
